package org.wmine.core;

import java.io.FileNotFoundException;

/**
 * Abstract class for the Project Managemet.
 * @author Prafulla V Tekawade
 *
 */
public abstract class AbstractProjectManager {
	public abstract boolean createProject(String projectName,String parentDirectory);
	public abstract void openProject(String projectFilePath) throws InvalidFileException;
	public abstract String readFile(String fileName) throws FileNotFoundException;
	public abstract boolean writeFile(String filename,String fileContents);
	public abstract boolean fileExists(String fileName);
	public abstract boolean isProjectOpened();
	/**
	 * Internal method used to verify the project file
	 * (Should be)Used by the openProject :-)
	 * @throws InvalidFileException
	 */
	protected abstract void verifyProjectFile() throws InvalidFileException;
}
